<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateLogisticsServersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('logistics_servers', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('member_id')->unsigned()->comment('用户 ID')->index();
            $table->string('load_position')->comment('装车点');
            $table->string('unload_position')->comment('卸货点');
            $table->string('name')->comment('货物名称');
            $table->integer('amonut')->unsigned()->comment('数量');
            $table->string('phone')->comment('电话');
            $table->boolean('status')->default(false)->comment('处理状态');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('logistics_servers');
    }
}
